package com.hsylient.javase.chapter11.demo06;

public class YieldThread implements Runnable {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "开始。。");
        Thread.yield();
        System.out.println(Thread.currentThread().getName() + "结束。。");
    }
}
